/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
$(function () {
    $("#Persona_id_grado").change(function () {

//Actualizar Todos
        $id = $('#Persona_id_grado').val();
        $informacion = {persona: {id: $id}};
        $url = baseUrl + "clientes/persona/AjaxGetImagenTipo";
        AjaxCargarListas($url,$informacion,function(data){
            if(data.url){
                alert(data.url);
            }
        });
    });
});

function AjaxCargarListas(url, data, callBack)
{
    $.ajax({
        type: 'POST',
        url: url,
        data: data,
        dataType:'json',
        success: function (data) {
            callBack(data);
        }
    });
}